Add console font selection to Locales menu#4469
Open
Softer wants to merge 1 commit intoarchlinux:masterfrom
Open
Add console font selection to Locales menu#4469Softer wants to merge 1 commit intoarchlinux:masterfrom
Softer wants to merge 1 commit intoarchlinux:masterfrom
Conversation
Add a 4th menu item "Console font" to the Locales configuration, allowing users to select a console font for the target system. The selected font is written to /etc/vconsole.conf. If a terminus font (ter-*) is selected, the terminus-font package is automatically installed on the target system.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description:
Adds a new
Console fontitem (4th) to the Locales submenu, allowing the user to pick a font for the target system's TTY (written to/etc/vconsole.conf).Font list is built from
/usr/share/kbd/consolefontson the running ISO.If the user picks a
ter-*terminus font, theterminus-fontpackage is automatically added to the target install.Why
Currently the target TTY always gets
default8x16regardless of the language the user picked. That breaks for users with languages that need a wider Unicode coverage (partialy addresses #3735). Giving a menu entry is the simplest fix that doesn't force heuristics on anyone.Behavior / backward compatibility
default8x16, so existing user configs and default installs produce the exact samevconsole.confas before.LocaleConfigurationgainsconsole_font: str = 'default8x16'. Old configuration JSONs without that field keep working via the default value.json()/_load_config()/preview()sides are updated symmetrically.Scope
One thing only - menu selection + vconsole write. A follow-up PR will offer to propagate the installer's chosen language (sys_lang / sys_enc / console_font) to the target locale configuration.
Test
/etc/vconsole.confcontainsFONT=default8x16as before.ter-v32bin the menu:FONT=ter-v32b,terminus-fontinstalled.user_configuration.jsonwith noconsole_font: default kicks in, no crash.